import request from "@/utils/request";
import cookie from 'js-cookie'
export default{
    login(user){
        return request({
            url:`http://localhost:8117/api/member/login`,
            method:'post',
            data:user
        })
    },
    getUserInfo(){
        return request({
            url:`http://localhost:8117/api/member/get-login-info`,
            method:'get',
            headers:{'token':cookie.get("jwt-token")}
        })
    }
}